package com.lancoo.cvas.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lancoo.cvas.entity.AssessmentMethod;
import com.lancoo.cvas.mapper.AssessmentMethodMapper;
import com.lancoo.cvas.service.AssessmentMethodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("assessmentMethodService")
public class AssessmentMethodServiceImpl extends ServiceImpl<AssessmentMethodMapper, AssessmentMethod> implements AssessmentMethodService {


    @Resource
    private AssessmentMethodMapper assessmentMethodMapper;

    @Override
    public List<AssessmentMethod> getAssessmentMethodList(Integer taskId, String schoolId, Integer flag) {
        return assessmentMethodMapper.selectList(new LambdaQueryWrapper<AssessmentMethod>()
                .eq(AssessmentMethod::getSchoolId,schoolId).eq(AssessmentMethod::getFlag,flag));
    }
}